﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace DosTexPrj.Core.Models
{
    [DataContract]
    public class DyeOrder : EntityBaseWithIntIDType
    {
        [DataMember]
        public virtual Order BelongToOrder { get; set; }

        [DataMember]
        public virtual OrderStatus OrderStatus { get; set; }

        [DataMember]
        public virtual Supplier BelongToSupplier { get; set; }

        [DataMember]
        public virtual Composition Composition { get; set; }

        [DataMember]
        public virtual string DeliveryAddress { get; set; }

        [DataMember]
        public virtual DateTime OrderDate { get; set; }

        [DataMember]
        public virtual DateTime DeliveryDate { get; set; }

        [DataMember]
        public virtual string DyeInstruction { get; set; }

        [DataMember]
        public virtual string Article { get; set; }

        [DataMember]
        public virtual double Width { get; set; }

        [DataMember]
        public virtual double Mt { get; set; }

        [DataMember]
        public virtual string Color { get; set; }

        [DataMember]
        public virtual string GMS { get; set; }

        [DataMember]
        public virtual IList<DyeOrderDetail> Details { get; set; }

        public DyeOrder()
        {
            this.Details = new List<DyeOrderDetail>();
        }
    }
}